package com.mall.order.dto;

import com.mall.commons.result.AbstractRequest;
import com.mall.commons.tool.exception.ValidateException;
import com.mall.order.constant.OrderRetCode;
import lombok.Data;

/**
 * @Author : PengFei Zhang
 * @Data :2021/6/18  22:46
 * @Description :
 */
//取消订单  zpf
@Data
public class PostCancelOlderRequest extends AbstractRequest {

    String orderId;

    @Override
    public void requestCheck() {
        if (orderId == null || "".equals(orderId)) {
            throw new ValidateException(
                    OrderRetCode.REQUISITE_PARAMETER_NOT_EXIST.getCode(),
                    OrderRetCode.REQUISITE_PARAMETER_NOT_EXIST.getMessage());
        }
    }
}
